package com.csnj.common.jwt;

import lombok.Data;

import java.io.Serializable;

/**
 * JWT认证信息
 * @Author xiabin
 */
@Data
public class JwtInfo implements Serializable {
    private String username;
    private String userId;

    public JwtInfo(String userId, String username) {
        this.username = username;
        this.userId = userId;
    }

    @Override
    public int hashCode() {
        int result = username != null ? username.hashCode() : 0;
        result = 31 * result + (userId != null ? userId.hashCode() : 0);
        return result;
    }
}
